/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dom;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * A reciever executes some task in 
 * a specific way, there 
 * can be several recievers who 
 * execute the same task but each one
 * in its own implementation
 * @author julian.pena
 */
public interface Reciever {
    /**
     * Through this method the reciever
     * is ordered to execute some task
     * @throws Exception 
     */
    public void action() throws Exception;
    
    public InputStream getInputStream();
    
    public void setInputStream(InputStream inputStream);
    
    public OutputStream getOutputStream();
    
    public void setOutputStream(OutputStream outputStream);
    
}
